package com.classtest.act;

public class Player extends Person {
    private String sport;//运动项目
    private String score;//历史最好成绩

    public Player() {
    }
    public Player(String name, int age, String sport, String score) {
        super(name, age);
        this.sport = sport;
        this.score = score;
    }

    public String getSport() {
        return sport;
    }

    public void setSport(String sport) {
        this.sport = sport;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    @Override
    public void selfIntroduction() {
        super.selfIntroduction();
        System.out.println("我擅长的运动项目是：" + sport);
        System.out.println("历史最好成绩是：" + score);
    }
}
